package com.bruce.tool.push.jpush.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

/**
 * 功能 :
 *
 * @author : Bruce(刘正航) 11:20 AM 2018/12/3
 */
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "tool.pusher.jpush")
public class JPusherConfig {
    @NotNull(message = "推送的唯一标识必须配置")
    private String accessKeyId;
    @NotNull(message = "推送的秘钥必须配置")
    private String accessKeySecret;
}
